home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / lang / c++-part2 / 15920 < prev    next >
Encoding:
Internet Message Format  |  1996-08-05  |  782 b 

  1. Path: news.NetVision.net.il!news
  2. From: nir@netvision.net.il (Nir Sofer)
  3. Newsgroups: comp.lang.c++
  4. Subject: malloc() function and new operator
  5. Date: Mon, 08 Apr 1996 19:07:30 GMT
  6. Organization: NetVision LTD.
  7. Message-ID: <4kbo18$t1s@news.NetVision.net.il>
  8. NNTP-Posting-Host: ts023p10.pop3a.netvision.net.il
  9. X-Newsreader: Forte Free Agent 1.0.82
  10.  
  11. I use in my C/C++ programs both malloc() function and new operator.
  12. i use new and delete operators for objects and malloc() and free()
  13. functions for allocating strings and other variables.
  14.  
  15. i compile my programs with Borland C++ 4.0 
  16. it works fine, but i want to be sure that i'm not doing something
  17. wrong that will cause troubles in the future.
  18.  
  19. Is it o.k to use both of them in the same program ?
  20.  
  21. Nir Sofer
  22. nir@netvision.net.il
  23.  
  24.  
  25.  
  26.  
  27.  
  28.  
  29.